package com.xiaoke.mapper;

import com.xiaoke.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface AddressMapper {
    int deleteByPrimaryKey(String id);

    int insert(Address record);

    int insertSelective(Address record);

    Address selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Address record);

    int updateByPrimaryKey(Address record);

    List<Map<String,Object>> findByUser(String userId);

    Map<String,Object> getDefaultAddress(String userId);

    Map<String,Object> findById(String id);
}